import request from '@/utils/request'

export default {

  // 获取PanelGroupNum
  getPanelGroupNum() {
    return request.service({
      url: `/crawler/dashboard/getPanelGroupNum`,
      method: 'get'
    })
  },

  // 获取LineChartData初始值
  initLineChartData() {
    return request.service({
      url: `/crawler/dashboard/initLineChartData`,
      method: 'get'
    })
  },

  // 获取排行榜的初始值
  initRankData(type, date) {
    return request.service({
      url: `/crawler/dashboard/initRankData`,
      method: 'get',
      params: {
        type,
        date
      }
    })
  }
}
